package com.ss.android.article.base.ui;

import android.app.Activity;
import android.app.Dialog;
import android.content.Context;

public class BaseDialog extends Dialog {
    public Activity mActivity;

    public BaseDialog(Activity arg1) {
        super(((Context)arg1));
        this.mActivity = arg1;
    }

    public BaseDialog(Activity arg1, int arg2) {
        super(((Context)arg1), arg2);
        this.mActivity = arg1;
    }

    public final boolean g() {
        return !this.mActivity.isFinishing();
    }

    public void show() {
        if(this.g()) {
            super.show();
        }
    }
}

